package club.caihappy.service;

import club.caihappy.dao.BookDao;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.inject.Inject;

/**
 * Created by DELL on 2021/10/4
 **/
@Service
public class BookService {
    //    @Qualifier("bookDao")
    @Autowired
    //    @Resource
//    @Inject
    private BookDao bookDao;

    @Override
    public String toString() {
        return "BookService{" +
                "bookDao=" + bookDao + "--" + bookDao.getLabel() +
                '}';
    }
}
